package com.example.design.shejimoshi.action.oberver.基于spring实现;

import org.springframework.context.ApplicationEvent;

/**
 * 定义事件类型：订单事件
 */
public class OrderEvent extends ApplicationEvent {

    Long orderId;

    public OrderEvent(Object source, Long orderId) {
        super(source);
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
}
